package com.qfedu.edu.aclservice.feign;

import com.qfedu.edu.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author xiaobobo
 * @title: VipService
 * @projectName seckill-fy-2401-parent
 * @description: TODO
 * @date 2024/11/5  14:03
 */
@FeignClient("vip-service")
public interface VipService {
    /**
     * 通过用户名查询用户数据
     * @param username
     * @return
     */
    @GetMapping("/vipservice/vip/listUserByUsername")
    @ResponseBody
    R listUserByUsername(@RequestParam("username") String username);

    /**
     * 查询所有的数据
     * @return
     */
    @GetMapping("/vipservice/vip/list")
    @ResponseBody
    R list();


}
